import request from '@/server'

export const queryGoodsListApi = (data) => {
  return request.post({
    url: '/snsh/productType/queryList',
    data
  })
}

export const addGoodsApi = (data) => {
  return request.post({
    url: '/snsh/product/save',
    data
  })
}

export const updateGoodsApi = (data) => {
  return request.post({
    url: '/snsh/product/update',
    data
  })
}

export const deleteGoodsApi = (params) => {
  return request.get({
    url: '/snsh/product/delete',
    params
  })
}

export const queryProductListApi = (data) => {
  return request.post({
    url: '/snsh/product/queryList',
    data
  })
}
